import request from "../utils/request.js"

export function getPrepareLessonPage(params) {
  return request({
    url: '/prepareLesson/page',
    method: 'post',
    data: params
  })
}

export function getprepareLessonDetail(params) {
  return request({
    url: '/prepareLesson/detail',
    method: 'get',
    data: params
  })
}

export function prepareLessonCollect(params) {
  return request({
    url: '/prepareLesson/collect',
    method: 'post',
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export function prepareLessonCancelCollect(params) {
  return request({
    url: '/prepareLesson/cancelCollect',
    method: 'post',
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export function pageCollect(params) {
  return request({
    url: '/prepareLesson/pageCollect',
    method: 'post',
    data: params
  })
}

export function pageMy(params) {
  return request({
    url: '/prepareLesson/pageMy',
    method: 'post',
    data: params
  })
}
